package com.ecspace.knowledgegraphapi.domain.vo;

import com.ecspace.knowledgegraphapi.domain.entity.Relation;

/**
 * @author: cs
 * @date: 2024-07-01 13:44:45
 * @since: 1.0
 */
public class RelationVO {


    private String id;

    private String name;

    private String fromId;

    private String toId;

    public RelationVO(Relation relation) {

    }

    public RelationVO(String id, String name, String fromId, String toId) {
        this.id = id;
        this.name = name;
        this.fromId = fromId;
        this.toId = toId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getToId() {
        return toId;
    }

    public void setToId(String toId) {
        this.toId = toId;
    }
}
